package com.gxa.modules.mapper;

import com.gxa.common.vo.PageRecv;
import com.gxa.modules.pojo.Contract;
import com.gxa.modules.pojo.ContractSearch;
import com.gxa.modules.pojo.LoanSearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: microloans_system
 * @description:
 * @author: LC
 * @create: 2021-12-28 16:28
 */

public interface ContractMapper {
    List<Contract> queryContractPageByCondition(PageRecv<LoanSearch> contractPageRecv);

    long countContractPageByCondition(PageRecv<LoanSearch> contractPageRecv);

    int insertContract(Contract contract);

    int updateLoanState(@Param(value = "loanId") long loanId,@Param(value = "state") int state);

    int updateContractStatus(@Param("status") int status,@Param("id") long id);
}